package com.ruoyi.web.utils;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.web.admin.domain.TdmBaoJianPin;
import com.ruoyi.web.admin.service.ITdmBaoJianPinService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 审核公共Controller
 * 
 * @author ly
 * @date 2022-03-08
 */
@RestController
@RequestMapping("/admin")
public class TdmExamineController extends BaseController
{
    @Autowired
    private ITdmBaoJianPinService tdmBaoJianPinService;

    /**
     * 审核
     */
    @Log(title = "ID-08 保健品数据库")
    @PutMapping("/examine")
    public AjaxResult examine(@RequestBody TdmBaoJianPin tdmBaoJianPin)
    {
        return toAjax(tdmBaoJianPinService.examine(tdmBaoJianPin));
    }
}
